package com.balakitbbs.service;

import org.springframework.beans.factory.annotation.Autowired; 
import org.springframework.stereotype.Service;                 
import com.balakitbbs.page.SearchPageUtil;     
import java.util.*;     
import com.balakitbbs.entity.Bala_files;
import com.balakitbbs.dao.Bala_filesDaoIF;
   /**
    * bala_files Service类
    */ 
@Service
public class Bala_filesService{
@Autowired
private Bala_filesDaoIF dao;
	public void addBala_files(Bala_files bala_files){
		dao.addBala_files(bala_files);
	}

	public void delBala_files(String id){
		dao.delBala_files(id);
	}

	public void delBala_filesTrue(String id){
		dao.delBala_filesTrue(id);
	}

	public void updateBala_files(Bala_files bala_files){
		dao.updateBala_files(bala_files);
	}

	public Bala_files selectBala_filesById(String id){
		return dao.selectBala_filesByID(id);
	}

	public int selectBala_filesCount(){
		return dao.selectBala_filesCount();
	}

	public int selectBala_filesCountAll(){
		return dao.selectBala_filesCountAll();
	}

	public List<Bala_files> selectBala_filessByPage(SearchPageUtil spu){
		return dao.selectBala_filessByPage(spu);
	}

	public int selectBala_filessByPOJOCount(Bala_files bala_files){
		return dao.selectBala_filessByPOJOCount(bala_files);
	}

	public List<Bala_files> selectBala_filessByPOJO(Bala_files bala_files){
		return dao.selectBala_filessByPOJO(bala_files);
	}

	public List<Bala_files> selectBala_filessByPojoPage(SearchPageUtil spu,Bala_files bala_files){
		Map map = new HashMap();
		map.put("spu",spu);
		map.put("pojo",bala_files);
		return dao.selectBala_filessByPojoPage(map);
	}

}

